home *** CD-ROM | disk | FTP | other *** search
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- #include <winb.h>
- #include <te.h>
- #include <fntb.h>
- #include <gui.h>
- #include "banx.h"
- #include "kifuctrl.h"
-
- int print_dialogId = -1 ;
- int print_numbox[3] = -1 ;
- int print_bottonId[2] = -1 ;
-
- /* initDataMIPRINT:print_bottonId[0]:MJ_DBUTTONL40の呼び出し関数 */
- int igo_printset(kobj, messId, argc, pev, trigger)
- int kobj ;
- int messId ;
- int argc ;
- EVENT *pev ;
- int trigger ;
- {
- int start_te, end_te, pstart_te;
- int min, max, delta, ptColum; /* 使用していない */
- int id; /* 印刷データID */
-
- /* 数値入力パネルの読み取り */
- MMI_SendMessage(print_numbox[0], MM_GETNUMBOX, 5,
- &start_te, &min, &max, &delta, &ptColum) ;
-
- /* 数値入力パネルの読み取り */
- MMI_SendMessage(print_numbox[1], MM_GETNUMBOX, 5,
- &end_te, &min, &max, &delta, &ptColum) ;
-
- /* 数値入力パネルの読み取り */
- MMI_SendMessage(print_numbox[2], MM_GETNUMBOX, 5,
- &pstart_te, &min, &max, &delta, &ptColum);
-
- /* スプーリング開始をスプーラに宣言し印刷データIDを取得します */
- if((id = SPL_start()) < 0){
- return NOERR;
- }
-
- if(kifu_print( start_te, end_te, pstart_te, 0) != 0){
- /* printf("priter_error \n"); */
- ; /* 本来ならエラ-メッセ-ジを出す所 */
- }
-
- /* スプーリング終了をスプーラに宣言します */
- SPL_end( id );
-
- /* print_dialogIdで示されるオブジェクトを消す */
- MMI_SendMessage( print_dialogId , MM_ERASE , 0 ) ;
-
- /* オブジェクトをダイアログから取り外す */
- MMI_SendMessage( print_dialogId , MM_DETACH , 0 ) ;
-
- retunrInitMenuFunc();
-
- return NOERR ;
- }
-
- /* initDataMIPRINT:print_bottonId[1]:MJ_DBUTTONL40の呼び出し関数 */
- int igo_printcancel(kobj, messId, argc, pev, trigger)
- int kobj ;
- int messId ;
- int argc ;
- EVENT *pev ;
- int trigger ;
- {
- /* print_dialogIdで示されるオブジェクトを消す */
- MMI_SendMessage( print_dialogId , MM_ERASE , 0 ) ;
-
- /* オブジェクトをダイアログから取り外す */
- MMI_SendMessage( print_dialogId , MM_DETACH , 0 ) ;
-
- retunrInitMenuFunc();
-
- return NOERR ;
- }
-
-